﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:c="clr-namespace:BCDManager.UI.Commands"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    xmlns:BCDManager_UI_Views="clr-namespace:BCDManager.UI.Views" 
    x:Class="BCDManager.UI.Views.MainView"
    Title="BCDManager" Height="400" Width="660">
    
    <Window.Resources>
        <!-- Allows a KeyBinding to be associated with a command defined in the View Model  -->
        <c:CommandReference x:Key="ExitCommandReference" Command="{Binding ExitCommand}" />
    </Window.Resources>
   
    <Window.InputBindings>
        <KeyBinding Key="X" Modifiers="Control" Command="{StaticResource ExitCommandReference}" /> 
    </Window.InputBindings>
    
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="_File">
                <MenuItem Command="{Binding ExitCommand}" Header="E_xit" InputGestureText="Ctrl-X" />
            </MenuItem>
            <MenuItem Header="_About" Command="{Binding ExitCommand}" InputGestureText="Ctrl-I" />
        </Menu>
	
        <Grid>
 
        	<BCDManager_UI_Views:BcdStoreView x:Name="ucBcdStoreView" HorizontalAlignment="Left" Margin="8,18.04,0,23" d:LayoutOverrides="Width"/>
 
        </Grid>
    </DockPanel>
</Window>
